package com.twu.biblioteca;


public class Book {
    private final String title;
    private Boolean rented;

    public Book(String bookTitle) {
        title = bookTitle;
        rented = false;
    }

    public String getTitle(){
        return title;
    }

    public Boolean isRented(){
        return rented;
    }

    public void rentBook(){
        rented = true;
    }

    public String bookStatus(){
        String rentStatusString = this.isRented() ? "RENTED" : "AVAILABLE";
        return  rentStatusString;
    }

    public void returnBook(){
        rented = false;
    }
}
